package com.zx.session;

import java.util.List;

/**
 * @ProjectName: myjdbc
 * @Package: com.zx.session
 * @ClassName: SqlSession
 * @Author: 1
 * @Description: SqlSessionFactory
 * @Date: 2021/9/6 19:01
 */
public interface SqlSession {
    //查询所有
    public  <E> List<E> selectList(String statementid, Object... params) throws Exception;

    //根据条件查询单个
    public <T> T selectOne(String statementid, Object... params) throws Exception;

    //更新
    public int update(String statementid, Object... params) throws Exception;

    //删除
    public int delete(String statementid, Object... params) throws Exception;

    //新增
    public int insert(String statementid, Object... params) throws Exception;


    //为Dao接口生成代理实现类
    public <T> T getMapper(Class<?> mapperClass);
}
